$OpenBSD: patch-Makefile,v 1.1 2015/12/22 14:41:52 sthen Exp $
--- Makefile.orig	Tue Dec 22 14:35:28 2015
+++ Makefile	Tue Dec 22 14:35:44 2015
@@ -4,7 +4,7 @@ CFLAGS += -fPIC
 all: $(TARGETS)
 
 rebind.so: rebind.o
-	$(CC) $(LDFLAGS) $^ -shared -fPIC -ldl -o $@
+	$(CC) $(LDFLAGS) $? -shared -fPIC -o $@
 
 clean:
 	rm -f rebind.o rebind.so
